#include "LeftWidget.h"


namespace UserManagementSystem {

LeftWidget::LeftWidget(UserManagementSystem::UserRepository* repository,QWidget *parent)
    :FramelessWidget(parent)
{

    m_mainLayout=new QVBoxLayout(this);

    m_topSearchWidget=new UserManagementSystem::SearchWidget();

    m_bottomPatientListWidget=new UserManagementSystem::PatientListWidget(repository);

    InitDedaultLayout();
}

void LeftWidget::InitDedaultLayout()
{
    m_mainLayout->addWidget(m_topSearchWidget,1);

    // m_bottomPatientListWidget->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);
    m_mainLayout->addWidget(m_bottomPatientListWidget,7);


}

};

